package com.things8.iot.baseIot.configeration;

import com.things8.iot.baseIot.dto.Parent;
import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author yzh
 * @version 1.0
 * @date 2021/5/17 23:30
 */
@RefreshScope
@ConfigurationProperties(prefix = "user")
@Component
@Getter
@Setter
public class Userconfiguration {
    private String name;
    private int age;
    private List<String> girl;
    private Parent parent;
}
